package com.example.string;

/**
 * @author readpage
 * @create 2022-09-04 16:48
 */
public class StringTest2 {
    String str = new String("good");
    char[] ch = { 't', 'e', 's', 't'};

    public void change(String str, char ch[]) {
        str = "test ok";
        ch[0] = 'b';
    }

    public static void main(String[] args) {
        StringTest2 st = new StringTest2();
        st.change(st.str, st.ch);
        System.out.println(st.str);
        System.out.println(st.ch);
    }
}
